﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;

namespace PictureBoard4.Shape
{
   public class Eraser:Shape
    {
        public override void Add(System.Drawing.Point point)
        {
            list.Add(point);
        }

        public override bool GetBound(ref System.Drawing.Point StartPoint, ref System.Drawing.Point EndPoint)
        {
            return false;
        }
       
        public override bool Draw(System.Drawing.Graphics g)
        {
            Point[] point = new Point[list.Count];
            for (int i = 0; i < list.Count; i++)
            {
                point[i] = list[i];
            }
            Pen pen = new Pen(Color.White, 20);
            if (point.Length > 1)
            {
                g.DrawLines(pen, point);
            }
            return true;
        }

        public override void Move(System.Drawing.Point Point)
        {
            throw new NotImplementedException();
        }
    }
}
